<div class='tableDiv' id='{{item.id}}'>
	<div id='tableHead'></div>
	<div id='tableBody'></div>
</div>
<script>
yanhx.addCommon("load",function(){
	yanhx.exec("{{item.id}}Handle.init");
});
(function(){
	{% include item.head %}
	yanhx.addComponent("{{item.id}}Handle",{
		head:head,
		temp:$(template),
		tableDiv:null,
		table:null,
		headElem:null,
	    pageSize:{{item.pageSize}},
		init:function(){
			this.tableDiv=$("#{{item.id}}");
			this.table=this.tableDiv.children("#tableBody");
			this.headElem=this.tableDiv.children("#tableHead");
			this.table.listTable({
				head:this.headElem,
				//头配置
				curCfg:this.head,
				//模板
				curTemp:this.temp
			});	
		},
		query:function(param){
			this.param=param;
			param.callback=this.doBack;
			param.param.pageSize=this.pageSize;
			$.java(param);
		},
		doBack:function(data){
			yanhx.exec("{{item.id}}Handle.fillTable",data);
		},
		fillTable:function(data){
			this.table.listTable({
				clean:true,
				data:data
			});
		}
	});
})();
</script>